<%-- 
    Document   : autenticacao
    Created on : 13/10/2013, 17:18:17
    Author     : Jorley
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core"  prefix="c"%>
<%@taglib uri="http://java.sun.com/jstl/fmt"       prefix="fmt"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Entrar</title>
    </head>
    <body>
        <c:import url="cabecalho.jsp"/>
        <form action="../ClienteServlet?cmd=autenticarCliente" method="post">
            <table style="text-align: left; width: 50%;" border="0" cellpadding="2" cellspacing="2" align="center">
                <tbody>
                    <tr>
                        <td style="vertical-align: top; text-align: right;">Usuário: </td>
                        <td style="vertical-align: top;"><input type="text" name="email"></td>
                    </tr>
                    <tr>
                        <td style="vertical-align: top; text-align: right;">Senha: </td>
                        <td style="vertical-align: top;"><input type="password" name="senha"></td>
                    </tr>
                    <tr>
                        <td style="vertical-align: top; text-align: right;"><input type="submit" value="Autenticar"></td>
                        <td style="vertical-align: top;"><input type="reset" value="Limpar"></td>
                    </tr>
                    
                    <c:set var="line"
                           value="<tr><td><br></td><td><br></td></tr><tr><td style=\"text-align: center;\" colspan=\"2\" 
                           rowspan=\"1\"><font color=\"red\">"/>
                    <c:set var="message" value="${requestScope.msg}" />
                    <c:if test="${message ne null and fn:trim(message) ne ''}" >
                        <c:set var="line" value="${line}${message}</font></td><td><br></td></tr>" />
                        <c:out value="${line}" escapeXml="false" />
                    </c:if>
                </tbody>
            </table>
        </form>
        <br>
        <c:import url="rodape.jsp"/>
    </body>
</html>
